package com.zjitc.common;


import redis.clients.jedis.Jedis;


/**
 * Created by lenovo on 2018/4/2.
 */
public class Token {
    public static final String TOKEN = "token";

    public static Jedis jedis;

    public String getToken(){
        jedis = new Jedis();
        String token = jedis.get("token");
        jedis.pexpire("token",3000);
        return token;
    }
}
